package com.gonsin.license.processors;


import com.gonsin.license.LicenseConfig;
import org.springframework.stereotype.Component;

/**
 * 来自手机端传过来的extra信息
 * extra内容由手机端自行定义
 */
@Component
public class LicenseExtraService {

    /**
     * 手机端授权时，extra 格式对应的版本号
     */
    private String version;

    /**
     * 手机端授权时，输入的额外内容
     */
    private String extra;


    public String getVersion() {
        return version;
    }

    public String getExtra() {
        return extra;
    }

    public boolean isLicensed() {
        return LicenseConfig.licensed;
    }

    protected void setVersion(String version) {
        this.version = version;
    }

    protected void setExtra(String extra) {
        this.extra = extra;
    }
}
